package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2023/3/3 14:45
 * @Describe    :
 */
@Parcelize
class AddressListResponse(

    var total: Int = 0,
    var list: ArrayList<ListBean> = ArrayList()

) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListBean(

        var userId: Int = 0,
        var id: Int = 0,
        var name: String = "",
        var mobile: String = "",
        var address: String = "",
        var detailedAddress: String = "",
        var addressType: Int = 0,//1默认2不默认

    ) : Parcelable
}